home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / viewkit / xcontact / include / Print.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  2.0 KB  |  90 lines

  1. /*
  2.  * Copyright (C) 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. //////////////////////////////////////////////////////////////////
  18. // Print.h
  19. //////////////////////////////////////////////////////////////////
  20. #ifndef PRINT_H
  21. #define PRINT_H
  22.  
  23. #include "VkPrintDialog.h"
  24. #include "OkToggleButton.h"
  25. #include "OkLabel.h"
  26. #include "OkStr.h"
  27.  
  28.  
  29.  
  30. class CardView;
  31. class RolodexInfoToggle;
  32. class NotesToggle;
  33.  
  34. class PrintCardDialog : public VkPrintDialog {
  35.  
  36.  friend RolodexInfoToggle;
  37.  friend NotesToggle;
  38.  
  39.  private:
  40.   OkLabel*        _label;
  41.   RolodexInfoToggle*    _rolodexInfoToggle;
  42.   NotesToggle*        _notesToggle;
  43.  
  44.   OkStr            _printLabel;
  45.   OkStr            _printBuf;
  46.  
  47.   const CardView*    _view;
  48.  
  49.   void composeRolodexInfo();
  50.   void composeNotes();
  51.   void toggleValuesChanged();
  52.  
  53.  protected:
  54.   Widget createWorkArea( Widget parent );
  55.  
  56.  public:
  57.   PrintCardDialog();
  58.   ~PrintCardDialog() {}
  59.  
  60.   void printCardView( const CardView* view=NULL );
  61.  
  62. };
  63.  
  64.  
  65.  
  66. class RolodexInfoToggle : public OkToggleButton {
  67.  
  68.   void valueChanged( Boolean );
  69.  
  70.  public:
  71.   RolodexInfoToggle( Widget parent ) : 
  72.     OkToggleButton( "rolodexInfoToggle", parent ) {}
  73.  
  74. };
  75.  
  76. class NotesToggle : public OkToggleButton {
  77.  
  78.   void valueChanged( Boolean );
  79.  
  80.  public:
  81.   NotesToggle( Widget parent ) : 
  82.     OkToggleButton( "notesToggle", parent ) {}
  83.  
  84. };
  85.  
  86. //////// Print Global dialog
  87. extern PrintCardDialog* thePrintCardDialog;
  88.  
  89. #endif
  90.